# -*- coding: UTF-8 -*-
class Equipment:
    TestData =[
               {"eid":"100001","name":"sword","atk":10,"dfd":0,"spd":0,"atk_rng":2},
               {"eid":"200001","name":"cloth","atk":0,"dfd":5,"spd":0,"atk_rng":0},
               {"eid":"300001","name":"boost","atk":0,"dfd":0,"spd":50,"atk_rng":0}
              ]
    def __init__(self):
        self.id = "00000000"
        self.name = "weapon"
        self.atk=0
        self.dfd=0
        self.spd=0
        self.atk_rng=0
        pass
    def initEquipment(self): 
        pass
    def loadData(self,equip_data):
        self.id = equip_data["eid"]
        self.name = equip_data["name"]
        self.atk = equip_data["atk"]
        self.dfd = equip_data["dfd"]
        self.spd = equip_data["spd"]
        self.atk_rng = equip_data["atk_rng"]
    
 
        
         
